var express = require('express');
var router = express.Router();
const loginRouter = require("./login.js")
const weatherRouter = require("./weather.js")
const registeredRouter = require("./registered.js")
const electricityRouter = require("./energy/electricity.js")
const forestRouter = require("./energy/forest");
const incomeAndCostRouter = require("./residentsLive/incomeAndCost");

/* GET home page. */
// router.get('/', function(req, res, next) {
//   res.render('index', { title: 'haha' });
// });
router.use(forestRouter);
router.use(loginRouter);
router.use(weatherRouter);
router.use(registeredRouter);
router.use(electricityRouter);
router.use(incomeAndCostRouter);
router.use(require("./gdp.js"));
router.use(require("./epidemic_situation"));
router.use(require("./dataDownload.js"));
router.get("/", (req,res,next) => {
    res.render("index",{ title: "login"});
})
 

module.exports = router;
